﻿@model DealKhuyenMaiV2.com.Models.LogOnModel

@{
    ViewBag.Title = "Đăng Nhập Admin";
    Layout = "Shared/_AdminLayout.cshtml";
}

<div class="box" style="width: 325px; min-height: 300px; margin-top: 40px; margin-left: auto; margin-right: auto;">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 style="background-image: url(../../ContentAdmin/DefaultThemes/image/lockscreen.png);">Bạn hãy điền tên đăng nhập</h1>
  </div>
  <div class="content" style="min-height: 150px;">

     
    
      @using (Html.BeginForm("LogOnAdmin", "Account", FormMethod.Post))
      {
      <table style="width: 100%;">
          <tbody>
              <tr>
                  <td style="text-align: center;" rowspan="4">
                      <img src="../../../ContentAdmin/DefaultThemes/image/login.png" />
                  </td>
              </tr>
              <tr>
                  <td>
                      Tên đăng nhập:
                      <br>
                       @Html.TextBoxFor(m => m.Email)
                                @Html.ValidationMessageFor(m => m.Email)
                      <br>
                      <br>
                      Mật khẩu:<br>
                      @Html.PasswordFor(m => m.Password)
                                @Html.ValidationMessageFor(m => m.Password)
                  </td>
              </tr>
              <tr>
                  <td>
                      &nbsp;
                  </td>
              </tr>
              <tr>
                  <td style="text-align: right;">
                      <input type="submit" value = "Đăng Nhập" />
                      
                  </td>
                  
              </tr>
          </tbody>
      </table>
      }
    <script type="text/javascript"><!--
        $('#form input').keydown(function (e) {
            if (e.keyCode == 13) {
                $('#form').submit();
            }
        });
	//--></script> 
  </div>
</div>
